$(function () {
    window.onload = function () {
        $('.navigation').children().children().children().eq(0).css('color', ' red');
        $.ajax({
            url: 'http://localhost:3000/play/new',
            methode: 'get',
            success: function (res) {
                var str = '';
                $.each(res, function (index, item) {
                    // console.log(item);
                    $.each(item, function (dex, txt) {
                        console.log(txt);
                        str += "<li>" +
                            "<div>" +
                            "<img src=" + txt.img + ">" +
                            "<p class=p>" + txt.text + "</P>" +
                            "<div class=div1>" + txt.price + "<span class=span><img src=../tubiao/zan.png>" + txt.like + "</span><span><img src=../tubiao/reply.png>" + txt.words
                            + "</div>" +
                            "</div>"
                        $('.kw ul').html(str);
                    })

                })

            }
        })
    }
})